package com.str.dto;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author: ZhangWu, Anything is possible!
 * @CreateTime: 2023/04/10 23:32
 * @Description: 短信验证码登录请求dto
 */
@Data
@Accessors(chain = true)
public class LoginByCodeDto {

    /**
     * 手机号
     */
    @NotNull(message = "手机号不能为空")
    private String phone;
    /**
     * 短信验证码
     */
    @NotNull(message = "验证码不能为空")
    private String code;
}
